<template>
  <div id="kaiPiao">
    <!--     头部-->
<!--    <header>
      <h3>万事达-TMS客户端</h3>
      <div>发票管理-申请发票</div>
    </header>-->
    <TmsHeader :tmsheader="tmsheader"></TmsHeader>
    <div class="jiBen">
      <div class="dingDan">订单号* XL189666654566</div>
      <div class="heTong">合同编号： HTDKL8699896378</div>
      <div class="yunShu">运输单号:  SL8699896378</div>
    </div>
<!--    委托人信息表-->
    <h3>客户信息</h3>
    <table border="1">
<!--      表头-->
      <thead>
        <tr >
          <th>用户名</th>
          <th>公司名</th>
          <th>联系人</th>
          <th>联系电话</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
          </td>
          <td>
            <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
          </td>
          <td>
            <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
          </td>
          <td>
            <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
          </td>
        </tr>
      </tbody>
    </table>
<!--    收货人信息表-->
    <h3>收货人信息</h3>
    <table border="1">
      <!--      表头-->
      <thead>
      <tr >
        <th>收货方</th>
        <th>收货人</th>
        <th>联系电话</th>
        <th>收货地址</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
      </tr>
      </tbody>
    </table>

<!--    计划时间表-->
    <h3>计划时间</h3>
    <table border="1">
      <!--      表头-->
      <thead>
      <tr >
        <th>计划装货时间</th>
        <th>计划到货时间</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td>
          <div class="block">
            <el-date-picker
                v-model="value1"
                type="datetime"
                placeholder="选择日期时间">
            </el-date-picker>
          </div>
        </td>
        <td>
          <div class="block">
            <el-date-picker
                v-model="value2"
                type="datetime"
                placeholder="选择日期时间">
            </el-date-picker>
          </div>
        </td>
      </tr>
      </tbody>
    </table>
<!--    货物信息表-->
    <h3>货物信息</h3>
    <table border="1">
      <!--      表头-->
      <thead>
      <tr >
        <th>货名</th>
        <th>规格型号</th>
        <th>总包装</th>
        <th>总数量</th>
        <th>总重量kg</th>
        <th>总体积m³</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td colspan="3" id="heJi">合计</td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
      </tr>
      </tbody>
    </table>

<!--    实际运费-->
    <h3>实际运费</h3>
    <table border="1">
      <!--      表头-->
      <thead>
      <tr >
        <th>单价</th>
        <th>总里程(km)</th>
        <th>运输费（￥）</th>
        <th>其它费用(￥)</th>
        <th>费用总计(￥)</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
      </tr>
      </tbody>
    </table>
<!--   备注 -->
    <h3>备注</h3>
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <el-form-item  prop="desc">
        <el-input type="textarea" v-model="ruleForm.desc"></el-input>
      </el-form-item>
    </el-form>

<!--    开票信息表-->
    <h3>开票信息</h3>
    <table border="1">
      <!--      表头-->
      <thead>
      <tr >
        <th>发票号</th>
        <th>开票金额</th>
        <th>备注</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
        <td>
          <el-input class="input1" v-model="input" placeholder="请输入内容" clearable></el-input>
        </td>
      </tr>
      </tbody>
    </table>

    <!--   发票电子附件-->
    <div class="images">
      <h4>发票电子附件</h4>
      <el-upload
          id="upload"
          action="/tuPianShangChuan"
          list-type="picture-card"
          :on-preview="handlePictureCardPreview"
          :on-remove="handleRemove">
        <i class="el-icon-plus"></i>
      </el-upload>
      <el-dialog :visible.sync="dialogVisible">
        <img width="100%" :src="dialogImageUrl" alt="">
      </el-dialog>
    </div>

<!--    底部按钮-->
    <div class="btn">
      <el-button type="info" id="">确认申请</el-button>
      <el-button type="info" id="fanHui" @click="fanHui">返回</el-button>
    </div>
  </div>

</template>

<script>

import TmsHeader from '../../TmsHeader'
export default {
name: "KaiPiao2",
  components: {TmsHeader},
  data() {
    return {
      tmsheader:{
        tmsBigTitle: "承运商端",
        tmsATitle: "发票管理",
        tmsBTitle: "新增发票",
      },
      tableData: [{

        id: '12987122',
        name: '合计',
        amount1: '234',
        amount2: '3.2',
        amount3: 10
      }],
      input:'',
      value1:'',
      value2:'',
      qianShou:'',
      ruleForm: {
        desc: ''
      },
      rules:{
        desc: [
          { required: false, trigger: 'blur' }
        ]
      },
      dialogImageUrl: '',
      dialogVisible: false
    }
  },
  methods:{
    fanHui(){
      this.$router.push('./contractManagement2')
    },
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },


  },
  mounted() {

  }

}
</script>

<style scoped>
h3,h4{
  text-align: left;
  margin:15px 0;
}
header{
  text-align: left;
  /*border:1px solid;*/
}
.jiBen{
  display: flex;
  /*border: 1px solid;*/
  background: #CCCCCA;
}
.jiBen>div{
  margin-right:30px;
  height: 40px;
  line-height: 40px;
}
.btn{
  margin-top:40px;
}
.btn button{
  width: 100px;
  height: 40px;
}
.input{
  height: 50px;

}
#plan{
  width: 361px;
}
table{
  border-collapse:collapse;
  text-align: center;
}
thead{
  background:#E4E4E2;
}
thead th{
  width: 180px;
  height: 30px;
}
td{
  width: 180px;

}
#heJi{
  background:#E4E4E2 ;
}
.input1 .el-input__inner {
   height: 55px !important;
 }
#upload{
  text-align: left;
  margin-left: 148px;
}



</style>